<?php

class m120526_213623_order_table extends CDbMigration {
    public function up() {
        $this->createTable('order', array(
            'id' => 'pk',
            'type' => 'integer NOT NULL',
            'picture' => 'string NOT NULL',
            'first_name' => 'string',
            'last_name' => 'string',
            'address' => 'string',
            'email' => 'string NOT NULL',
            'phone' => 'string Not NULL',
            'description' => 'string',
            'create_time' => 'datetime default NULL',
        ));
    }

    public function down() {
        $this->dropTable('order');
    }
}